package org.swift.mashup.engine.model;

import java.util.Map;

public class NullActivity implements Activity {
	
	private static NullActivity INSTANCE = new NullActivity();
	
	public static NullActivity instance() {
		return INSTANCE;
	}
	
	//singleton
	private NullActivity() {}
	
	@Override
	public ActivityResultComponent doActivity(ActivityContext context,
			Map<String, ? extends Object> parameters) throws ActivityException {		
		return new ActivityResultItem(context.getValue());
	}

}
